﻿<%@ Page Language="C#" MasterPageFile="~/member/mMenber.master" AutoEventWireup="true"
    CodeBehind="pinfo.aspx.cs" Inherits="map.member.pinfo" Title="个人信息" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
    <link href="../outstyle.css" rel="stylesheet" type="text/css" />
    <link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 200px;
            vertical-align: top;
        }
        .itemcateSelectDiv, .shopcateSelectDiv
        {
            padding: 5px 0px 5px 0px;
            text-align: left;
        }
        .itemcateSelectDiv select, .shopcateSelectDiv select
        {
            width: 180px;
        }
        .itemcateSelectUl
        {
            list-style-type: none;
        }
        .ErrorMsgP
        {
            border: solid 1px red;
            background-color: #FFF2F2;
            width: 150px;
            margin-top: 3px;
        }
        .labelMarkerStyle
        {
            color: white;
            text-align: center;
            height: 21px;
            padding-top: 7px;
            position: relative;
            width: 50px;
        }
        .labelInfoWindowStyle
        {
            width: 200px;
            height: 200px;
            display: none;
        }
        div.labelMarkerCommDivRight
        {
            background: url(../img/lable_mask_right_150x28.png) no-repeat;
            position: absolute;
            border: none;
            margin: 0px 0px 0px 0px;
            padding: 0px 0px 0px 0px;
            width: 150px;
            height: 28px;
            background-position: 0px 0px;
        }
        .labelMarkerCommSpan
        {
            line-height: 32px;
            vertical-align: middle;
            color: White;
        }
        #labelMarkerCanvasExtInfoWindow
        {
            background-color: lightGray;
            color: Red;
            position: relative;
            border: solid 1px blue;
            width: 325px;
            height: 50px;
        }
        #simple_example_window
        {
            width: 300px;
        }
        #simple_example_window_contents
        {
            background-color: #FFF;
        }
        #simple_example_window_beak
        {
            width: 28px;
            height: 8px;
        }
        * html #simple_example_window_beak
        {
            /* Alpha transparencies hack for IE */
            background-image: none;
            filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src= 'images/corners/red_beak.png' , sizingMethod= 'crop' );
        }
        #simple_example_window_close
        {
            width: 31px;
            height: 31px;
            background: url( "../img/close_20x20.png" ) left 10px no-repeat;
            cursor: pointer;
        }
        #simple_example_window_tl
        {
            background: url( '../img/panel.tl_15x15.png' ) no-repeat;
            width: 15px;
            height: 15px;
        }
        #simple_example_window_bl
        {
            background: url( '../img/panel.bl_15x15.png' ) no-repeat;
            width: 15px;
            height: 15px;
        }
        #simple_example_window_br
        {
            background: url( '../img/panel.br_15x15.png' ) no-repeat;
            width: 15px;
            height: 15px;
        }
        #simple_example_window_tr
        {
            background: url( '../img/panel.tr_15x15.png' ) no-repeat;
            width: 15px;
            height: 15px;
        }
        #simple_example_window_l
        {
            background: url( '../img/panel.l_15x15.png' );
            width: 15px;
        }
        #simple_example_window_r
        {
            background: url( '../img/panel.r_15x15.png' );
            width: 15px;
        }
        #simple_example_window_t
        {
            background: url( '../img/panel.t_15x15.png' );
        }
        #simple_example_window_b
        {
            background: url( '../img/panel.b_15x15.png' );
        }
    </style>

    <%--<script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>

    <link href="../css/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />--%>

    <script src="../js/dropdowncontent.js" type="text/javascript"></script>

    <script src="../js/JScript1.js" type="text/javascript"></script>

    <script src="../js/dom-drag.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
<asp:Literal ID="Literal_map" runat="server"></asp:Literal>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td class="style2">
                        电子邮箱:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox1" runat="server" Enabled="false" ReadOnly="true"></asp:TextBox>
                        <span class="style5">&nbsp;</span>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        昵称:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox2" runat="server" ></asp:TextBox>
                        <span class="style5">&nbsp;</span>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        姓名:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox12" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        身份证号:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox13" runat="server"></asp:TextBox>
                        
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" Text="修改信息" OnClick="Button1_Click" />
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ErrorMessage="身份证号格式有误。" ControlToValidate="TextBox13" 
                            ValidationExpression="\d{18}|\d{15}"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                
            </table>
            <hr />
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td class="style2">
                        原密码:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox3" runat="server" TextMode="Password"></asp:TextBox>
                        <span class="style5">&nbsp;</span>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        新密码:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox4" runat="server" TextMode="Password"></asp:TextBox>
                        <span class="style5">&nbsp;</span>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        确认密码:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox5" runat="server" TextMode="Password"></asp:TextBox>
                        <span class="style5">&nbsp;</span>
                    </td>
                    <td>
                        <asp:Button ID="Button3" runat="server" Text="修改密码" OnClick="Button3_Click" />
                    </td>
                </tr>
            </table>
            <hr />
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="customizeSite" runat="server">
    <ContentTemplate>
    <table>
    <tr>
    <td class="style2">
    个性化域名:</td><td><asp:TextBox ID="newDomain" runat="server" 
                ontextchanged="newDomain_TextChanged"></asp:TextBox></td><td>
            <asp:Button id="changeDomain" runat="server" Text="使用此域名" 
                onclick="changeDomain_Click"/></td><asp:Label ID="showDomainMess" 
            runat="server" ForeColor="Red"></asp:Label></tr></table>
                <hr /></ContentTemplate></asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td class="style2">
                        我初中所在的学校:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                        毕业年份:<asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem>1970</asp:ListItem>
                            <asp:ListItem>1971</asp:ListItem>
                            <asp:ListItem>1972</asp:ListItem>
                            <asp:ListItem>1973</asp:ListItem>
                            <asp:ListItem>1974</asp:ListItem>
                            <asp:ListItem>1975</asp:ListItem>
                            <asp:ListItem>1976</asp:ListItem>
                            <asp:ListItem>1977</asp:ListItem>
                            <asp:ListItem>1978</asp:ListItem>
                            <asp:ListItem>1979</asp:ListItem>
                            <asp:ListItem>1980</asp:ListItem>
                            <asp:ListItem>1981</asp:ListItem>
                            <asp:ListItem>1982</asp:ListItem>
                            <asp:ListItem>1983</asp:ListItem>
                            <asp:ListItem>1984</asp:ListItem>
                            <asp:ListItem>1985</asp:ListItem>
                            <asp:ListItem>1986</asp:ListItem>
                            <asp:ListItem>1987</asp:ListItem>
                            <asp:ListItem>1988</asp:ListItem>
                            <asp:ListItem>1989</asp:ListItem>
                            <asp:ListItem>1990</asp:ListItem>
                            <asp:ListItem>1991</asp:ListItem>
                            <asp:ListItem>1992</asp:ListItem>
                            <asp:ListItem>1993</asp:ListItem>
                            <asp:ListItem>1994</asp:ListItem>
                            <asp:ListItem>1995</asp:ListItem>
                            <asp:ListItem>1996</asp:ListItem>
                            <asp:ListItem>1997</asp:ListItem>
                            <asp:ListItem>1998</asp:ListItem>
                            <asp:ListItem>1999</asp:ListItem>
                            <asp:ListItem>2000</asp:ListItem>
                            <asp:ListItem>2001</asp:ListItem>
                            <asp:ListItem>2002</asp:ListItem>
                            <asp:ListItem>2003</asp:ListItem>
                            <asp:ListItem>2004</asp:ListItem>
                            <asp:ListItem>2005</asp:ListItem>
                            <asp:ListItem>2006</asp:ListItem>
                            <asp:ListItem>2007</asp:ListItem>
                            <asp:ListItem>2008</asp:ListItem>
                            <asp:ListItem>2009</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        我高中所在的学校:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                        毕业年份:<asp:DropDownList ID="DropDownList2" runat="server">
                            <asp:ListItem>1970</asp:ListItem>
                            <asp:ListItem>1971</asp:ListItem>
                            <asp:ListItem>1972</asp:ListItem>
                            <asp:ListItem>1973</asp:ListItem>
                            <asp:ListItem>1974</asp:ListItem>
                            <asp:ListItem>1975</asp:ListItem>
                            <asp:ListItem>1976</asp:ListItem>
                            <asp:ListItem>1977</asp:ListItem>
                            <asp:ListItem>1978</asp:ListItem>
                            <asp:ListItem>1979</asp:ListItem>
                            <asp:ListItem>1980</asp:ListItem>
                            <asp:ListItem>1981</asp:ListItem>
                            <asp:ListItem>1982</asp:ListItem>
                            <asp:ListItem>1983</asp:ListItem>
                            <asp:ListItem>1984</asp:ListItem>
                            <asp:ListItem>1985</asp:ListItem>
                            <asp:ListItem>1986</asp:ListItem>
                            <asp:ListItem>1987</asp:ListItem>
                            <asp:ListItem>1988</asp:ListItem>
                            <asp:ListItem>1989</asp:ListItem>
                            <asp:ListItem>1990</asp:ListItem>
                            <asp:ListItem>1991</asp:ListItem>
                            <asp:ListItem>1992</asp:ListItem>
                            <asp:ListItem>1993</asp:ListItem>
                            <asp:ListItem>1994</asp:ListItem>
                            <asp:ListItem>1995</asp:ListItem>
                            <asp:ListItem>1996</asp:ListItem>
                            <asp:ListItem>1997</asp:ListItem>
                            <asp:ListItem>1998</asp:ListItem>
                            <asp:ListItem>1999</asp:ListItem>
                            <asp:ListItem>2000</asp:ListItem>
                            <asp:ListItem>2001</asp:ListItem>
                            <asp:ListItem>2002</asp:ListItem>
                            <asp:ListItem>2003</asp:ListItem>
                            <asp:ListItem>2004</asp:ListItem>
                            <asp:ListItem>2005</asp:ListItem>
                            <asp:ListItem>2006</asp:ListItem>
                            <asp:ListItem>2007</asp:ListItem>
                            <asp:ListItem>2008</asp:ListItem>
                            <asp:ListItem>2009</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        我大学所在的学校:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                        毕业年份:<asp:DropDownList ID="DropDownList3" runat="server">
                            <asp:ListItem>1970</asp:ListItem>
                            <asp:ListItem>1971</asp:ListItem>
                            <asp:ListItem>1972</asp:ListItem>
                            <asp:ListItem>1973</asp:ListItem>
                            <asp:ListItem>1974</asp:ListItem>
                            <asp:ListItem>1975</asp:ListItem>
                            <asp:ListItem>1976</asp:ListItem>
                            <asp:ListItem>1977</asp:ListItem>
                            <asp:ListItem>1978</asp:ListItem>
                            <asp:ListItem>1979</asp:ListItem>
                            <asp:ListItem>1980</asp:ListItem>
                            <asp:ListItem>1981</asp:ListItem>
                            <asp:ListItem>1982</asp:ListItem>
                            <asp:ListItem>1983</asp:ListItem>
                            <asp:ListItem>1984</asp:ListItem>
                            <asp:ListItem>1985</asp:ListItem>
                            <asp:ListItem>1986</asp:ListItem>
                            <asp:ListItem>1987</asp:ListItem>
                            <asp:ListItem>1988</asp:ListItem>
                            <asp:ListItem>1989</asp:ListItem>
                            <asp:ListItem>1990</asp:ListItem>
                            <asp:ListItem>1991</asp:ListItem>
                            <asp:ListItem>1992</asp:ListItem>
                            <asp:ListItem>1993</asp:ListItem>
                            <asp:ListItem>1994</asp:ListItem>
                            <asp:ListItem>1995</asp:ListItem>
                            <asp:ListItem>1996</asp:ListItem>
                            <asp:ListItem>1997</asp:ListItem>
                            <asp:ListItem>1998</asp:ListItem>
                            <asp:ListItem>1999</asp:ListItem>
                            <asp:ListItem>2000</asp:ListItem>
                            <asp:ListItem>2001</asp:ListItem>
                            <asp:ListItem>2002</asp:ListItem>
                            <asp:ListItem>2003</asp:ListItem>
                            <asp:ListItem>2004</asp:ListItem>
                            <asp:ListItem>2005</asp:ListItem>
                            <asp:ListItem>2006</asp:ListItem>
                            <asp:ListItem>2007</asp:ListItem>
                            <asp:ListItem>2008</asp:ListItem>
                            <asp:ListItem>2009</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        我曾经的工作单位:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        QQ号码:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        MSN号码:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        淘宝ID:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox16" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        手机:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox18" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2">
                        常用E-mail:
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox17" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="修改详细信息" />
                    </td>
            </table>
            <hr />
        </ContentTemplate>
    </asp:UpdatePanel>
    <table>
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                    <ContentTemplate>
                        县:<asp:DropDownList ID="DropDownList4" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                        </asp:DropDownList>
                        地区:<asp:DropDownList ID="DropDownList5" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
                        </asp:DropDownList>
                        区域:<asp:DropDownList ID="DropDownList6" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged">
                        </asp:DropDownList>
                        小区:<asp:DropDownList ID="DropDownList7" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList4_SelectedIndexChanged">
                        </asp:DropDownList>
                        <a href="area5.aspx" target="_blank">点此标记新的小区信息</a>
                    </ContentTemplate>
                </asp:UpdatePanel>


                <script type="text/javascript">
        var map;
        var geocoder = null;
        function markpos2(zlong, zlat, desc) {
                        document.getElementById("ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_TextBox11").value = zlat;
                        document.getElementById("ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_TextBox10").value = zlong;
            map.clearOverlays();
            var point1 = new GLatLng(zlat, zlong);
            var marker1 = new GMarker(point1);
           
            GEvent.addListener(marker1, "click", function() {
                marker1.openInfoWindowHtml("标注此位置");
            });
            map.addOverlay(marker1);
            map.setCenter(point1, 14);

        }
        function showAddress(address) {
            if (geocoder) {
                geocoder.getLatLng(
          address,
          function(point) {
              if (!point) {
                  alert("不能解析: " + address);
              } else {
                  map.setCenter(point, 13);
                  var marker = new GMarker(point);
                  map.addOverlay(marker);
                  marker.openInfoWindowHtml(address);
              }
          }
        );
            }
        }
        function markpos(zlong, zlat, desc) {
            if (GBrowserIsCompatible()) {
                var mapOptions = {
                    googleBarOptions: {
                        style: "new"
                    }
                }


                map = new GMap2(document.getElementById("map_canvas"),mapOptions);


                map.setMapType(G_NORMAL_MAP);
                map.addControl(new GMapTypeControl());
                map.addControl(new GLargeMapControl());
                map.enableContinuousZoom();
                map.addControl(new GOverviewMapControl());
                geocoder = new GClientGeocoder();
              
                map.enableGoogleBar();



                var center = new GLatLng(zlat, zlong);
                map.setCenter(center, 14);



                GEvent.addListener(map, "click", function(overlay, latlng) {
                    if (latlng) {
                        var myHtml = "标注此位置";
                        //m.removeOverlay(marker);
                        map.clearOverlays();

                        map.openInfoWindow(latlng, myHtml);
                        var lat = latlng.lat();
                        var lon = latlng.lng();
                        //map.clearOverlays();
                        //                        var ss1 = document.getElementById("ctl00_ContentPlaceHolder1_Label5");
                        //                        var ss2 = document.getElementById("ctl00_ContentPlaceHolder1_Label3");
                        //                        document.getElementById("ctl00_ContentPlaceHolder1_Label5").value = lat;
                        //                        document.getElementById("ctl00_ContentPlaceHolder1_Label3").value = lon;
                        document.getElementById("ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_TextBox11").value = lat;
                        document.getElementById("ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_TextBox10").value = lon;
                        var point = new GLatLng(lat, lon);
                        var marker = new GMarker(point);
                        GEvent.addListener(marker, "click", function() {
                            marker.openInfoWindowHtml("标注此位置");
                        });
                        map.addOverlay(marker);
                    }
                });
            }
        }
                </script>

                经度:<asp:TextBox ID="TextBox10" name="MapLat" runat="server" Enabled="False"></asp:TextBox>
                纬度:<asp:TextBox ID="TextBox11" name="mapLng" runat="server" Enabled="False"></asp:TextBox>详细地址:<asp:TextBox ID="TextBox19" runat="server"></asp:TextBox>
                <br />
                <div id="map_canvas" style="width: 530px; height: 300px; border-color: Gray; border-style: solid;
                    border-width: 1px;">
                </div>
                <asp:Button ID="Button4" runat="server" Text="修改位置" OnClick="Button4_Click" />
            </td>
        </tr>
    </table>
    <hr />
</asp:Content>
